/**
 * Copyright (c) 2011 eelpo.com
 * All rights reserved.
 */
package com.eelpo.cmmp.core.wicket.panel.grid.column;

import org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator;
import org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByLink;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.Panel;

/**
 * <pre>
 * 
 * 排序面板
 * 
 * </pre>
 * 
 * @author <a href="mailto:Brian@eelpo.com">汪洪州</a>
 * @since 1.0
 */
public class OrderPanel extends Panel {

	private static final long serialVersionUID = 217349101878853891L;

	public OrderPanel(String id, String propertyName, String headName, ISortStateLocator dataProvider) {
		super(id);

		add(new OrderByLink("link", propertyName, dataProvider).add(new Label("span", headName)));
	}
}
